# coding: utf-8
# @Author: 健聪
# @Description: 文件编码encoding参数
# @Date: 2024/3/12

# f = open('demo_GBK.txt', mode='w', encoding='GBK')
# f.write("人生苦短，我用Python")
# f.close()


f = open('demo_GBK.txt', mode='r', encoding='GBK')
data = f.readlines()
print(data)
f.close()
